package com.thm.tfast.modules.sys.model.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author THM
 * @date 2022/10/28
 * @desc 用户角色dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRoleDto {

    @ApiModelProperty(value = "用户ID",required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "角色ID集合",required = true)
    @NotNull(message = "角色ID集合不能为空")
    private List<Long> roleIds;
}
